home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_automake.idb / usr / freeware / share / aclocal / termios.m4.z / termios.m4
Encoding:
M4 Source File  |  1999-07-16  |  358 b   |  15 lines

  1. dnl From Jim Meyering.
  2.  
  3. # serial 1
  4.  
  5. AC_DEFUN(AM_SYS_POSIX_TERMIOS,
  6. [AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios,
  7.   [AC_TRY_LINK([#include <sys/types.h>
  8. #include <unistd.h>
  9. #include <termios.h>],
  10.   [/* SunOS 4.0.3 has termios.h but not the library calls.  */
  11.    tcgetattr(0, 0);],
  12.   am_cv_sys_posix_termios=yes,
  13.   am_cv_sys_posix_termios=no)])
  14. ])
  15.